package rahcir;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Text;
import com.google.appengine.api.datastore.Link;

@PersistenceCapable(identityType = IdentityType.APPLICATION)

public class Shop {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String shopname;

	@Persistent
	private Text comment;

	@Persistent
	private String address;

	@Persistent
	private Link mapurl;

	public Shop(String shopname, Text comment, String address, Link mapurl) {
		super();
		this.shopname = shopname;
		this.comment = comment;
		this.address = address;
		this.mapurl = mapurl;
	}

	public Long getId() {
		return id;
	}

	public String getShopname() {
		return shopname;
	}

	public void setShopname(String shop) {
		this.shopname = shop;
	}

	public Text getComment() {
		return comment;
	}

	public void setComment(Text comment) {
		this.comment = comment;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Link getMapurl() {
		return mapurl;
	}

	public void setMapurl(Link mapurl) {
		this.mapurl = mapurl;
	}

}
